package com.ruoyi.service.jpjs.emponjob.impl;

import com.ruoyi.mapper.jpjs.emponjob.EmpOnJobMapper;
import com.ruoyi.service.jpjs.PublicService;
import com.ruoyi.service.jpjs.emponjob.EmpOnJobService;
import com.ruoyi.util.BaseResult;
import com.ruoyi.util.ResultEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class EmpOnJobServiceimpl implements EmpOnJobService {


    @Autowired
    EmpOnJobMapper empOnJobMapper;

    @Autowired
    PublicService publicService;

    @Override
    public List<Map<String, Object>> list(Map map) {
        List<Map<String, Object>> compList = publicService.findUserCompAndJszb();
        map.put("compList", compList);
        return empOnJobMapper.list(map);
    }

    @Override
    public Map<String, Object> findDataById(String id) {
        return empOnJobMapper.findDataById(id);
    }

    @Override
    public int edit(Map map) {
        return empOnJobMapper.edit(map);
    }
}
